﻿#include <iostream>
#include "global.h"
using namespace std;
int main()
{
    int command;
    double a, b;
    double result;
    cout << "请输入要计算的两个数：";
    cin >> a >> b;
    cout << "1.加法 2.减法 3.乘法 4.除法"<<endl;
    cin >> command;
    if (command == 1)
    {
        result = Add(a, b);
    }
    else if (command==2)
    {
        result = Subduction(a, b);
    }
    else if (command == 3)
    {
        result = Multiplication(a, b);
    }
    else if (command == 4)
    {
        result = Division(a, b);
    }
    cout << result;
}

